
class PointCandle extends Point {
	
	public var width:Float;
	public var bar_bottom:Float;
	public var high:Float;
	public var open:Float;
	public var close:Float;
	public var low:Float;
	
	public function new() {
		super( x, high );
		
		this.width = width;
		this.high = high;
		this.open = open;
		this.close = close;
		this.low = low;
	}
	
	public override function make_tooltip(
		tip:String, key:String, val:Float, x_legend:String,
		x_axis_label:String, tip_set:String ):Void {
			
	
		super.make_tooltip( tip, key, val, x_legend, x_axis_label, tip_set );
//			super.make_tooltip( tip, key, val.open, x_legend, x_axis_label, tip_set );
//			
//			var tmp:String = this.tooltip;
//			tmp =  StringTools.replace(tmp,'#high#',NumberUtils.formatFloat(val.high));
//			tmp =  StringTools.replace(tmp,'#open#',NumberUtils.formatFloat(val.open));
//			tmp =  StringTools.replace(tmp,'#close#',NumberUtils.formatFloat(val.close));
//			tmp =  StringTools.replace(tmp,'#low#',NumberUtils.formatFloat(val.low));
			
//			this.tooltip = tmp;
	}
	
	public override function get_tip_pos():Dynamic {
		return {x:this.x+(this.width/2), y:this.y};
	}
}
